package com.dianping.cat.home.utilization.entity;

import com.dianping.cat.home.utilization.BaseEntity;
import com.dianping.cat.home.utilization.IVisitor;











public class ApplicationState
  extends BaseEntity<ApplicationState>
{
  private String m_id;
  private long m_failureCount;
  private double m_failurePercent;
  private long m_count;
  private double m_maxQps;
  private double m_avg;
  private double m_sum;
  private double m_avg95;

  public ApplicationState() {}

/*  30 */   public ApplicationState(String id) { this.m_id = id; }




/*  35 */   public void accept(IVisitor visitor) { visitor.visitApplicationState(this); }



  public boolean equals(Object obj) {
/*  40 */     if (obj instanceof ApplicationState) {
/*  41 */       ApplicationState _o = (ApplicationState)obj;

/*  43 */       if (!equals(getId(), _o.getId())) {
/*  44 */         return false;
      }

/*  47 */       return true;
    }

/*  50 */     return false;
  }


/*  54 */   public double getAvg() { return this.m_avg; }



/*  58 */   public double getAvg95() { return this.m_avg95; }



/*  62 */   public long getCount() { return this.m_count; }



/*  66 */   public long getFailureCount() { return this.m_failureCount; }



/*  70 */   public double getFailurePercent() { return this.m_failurePercent; }



/*  74 */   public String getId() { return this.m_id; }



  public double getMaxQps() { return this.m_maxQps; }



/*  82 */   public double getSum() { return this.m_sum; }



  public int hashCode() {
/*  87 */     int hash = 0;

/*  89 */     return hash * 31 + ((this.m_id == null) ? 0 : this.m_id.hashCode());
  }




  public void mergeAttributes(ApplicationState other) {
/*  96 */     assertAttributeEquals(other, "applicationState", "id", this.m_id, other.getId());

/*  98 */     this.m_failureCount = other.getFailureCount();

/* 100 */     this.m_failurePercent = other.getFailurePercent();

/* 102 */     this.m_count = other.getCount();

/* 104 */     this.m_maxQps = other.getMaxQps();

/* 106 */     this.m_avg = other.getAvg();

/* 108 */     this.m_sum = other.getSum();

/* 110 */     this.m_avg95 = other.getAvg95();
  }

  public ApplicationState setAvg(double avg) {
/* 114 */     this.m_avg = avg;
/* 115 */     return this;
  }

  public ApplicationState setAvg95(double avg95) {
/* 119 */     this.m_avg95 = avg95;
/* 120 */     return this;
  }

  public ApplicationState setCount(long count) {
/* 124 */     this.m_count = count;
/* 125 */     return this;
  }

  public ApplicationState setFailureCount(long failureCount) {
/* 129 */     this.m_failureCount = failureCount;
/* 130 */     return this;
  }

  public ApplicationState setFailurePercent(double failurePercent) {
/* 134 */     this.m_failurePercent = failurePercent;
/* 135 */     return this;
  }

  public ApplicationState setId(String id) {
/* 139 */     this.m_id = id;
/* 140 */     return this;
  }

  public ApplicationState setMaxQps(double maxQps) {
/* 144 */     this.m_maxQps = maxQps;
/* 145 */     return this;
  }

  public ApplicationState setSum(double sum) {
/* 149 */     this.m_sum = sum;
/* 150 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/classes/!/com/dianping/cat/home/utilization/entity/ApplicationState.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */